<?php

namespace App\Http\Controllers;

use App\Models\Channel;
use App\Models\Navigation;
use Illuminate\Http\Request;

class HomeController extends Controller
{
    public function index(){
        $channels = (new Channel)->toTree();
        //var_dump(\App\Models\Banners::find(1)->thumbs);exit;
        return view('home.index', [
                'navigation' => Navigation::where('status',1)->get(),
                'channels' => $channels
        ]);
    }
}
